import request from '@/router/axios';

export const getList =(current, size, params)=>{
    return request({
        url: '/api/dis-report',
        method: 'get',
        params:{
            ...params,
            current,
            size,
        },
      })
}
export const del =(data)=>{
    return request({
        meta:{
            isSerialize:true,
        },
        url: '/api/dis-report/announcement/remove',
        method: 'post',
        data:data
      })
}
export const add =(data)=>{
    return request({
        url: '/api/dis-report/announcement/save',
        method: 'post',
        data:data
      })
}
export const release =(data)=>{
    return request({
        meta:{
            isSerialize:true,
        },
        url: '/api/dis-report/announcement/release',
        method: 'post',
        data:data
      })
}
export const getDetail =(id)=>{
    return request({
        url: '/api/dis-report/announcement/selectById',
        method: 'get',
        params:{id},
      })
}
export const uploadFile =(file)=>{
    return request({
        url: '/api/sis-file/feign/file/yrFileUpload',
        method: 'post',
        data:file,
      })
}
export const stop =(id)=>{
    return request({
        meta:{
            isSerialize:true,
        },
        url: '/api/dis-report/announcement/stopAnnouncement',
        method: 'post',
        data:{id},
      })
}
